package com.itheima.controller;

import com.itheima.pojo.Result;
import com.itheima.service.ReportService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/report")
public class ReportController {
    @Resource
    ReportService reportService;

    /**
     * 统计性别数据
     * @return
     */
    @GetMapping("/empGenderData")
    public Result empGenderData(){
        return reportService.empGenderData();
    }

    /**
     * 统计职位信息
     */
    @GetMapping("/empJobData")
    public Result empJobData(){
        return reportService.empJobData();
    }

    /**
     * 统计学历
     */
    @GetMapping("/studentDegreeData")
    public Result degreeData(){
        return reportService.degreeData();
    }

    /**
     * 统计班级人数
     */
    @GetMapping("/studentCountData")
    public Result studentCount(){
        return reportService.studentCount();
    }

}
